<!doctype html>
<html lang="en">
<head>
<meta charset="iso-8859-1">
<script src="../brython.js"></script>
<script src="../py_utils.js"></script>
</head>
<body onload="brython(1)">
<script type="text/python">
import sys
class cons_out:

    def __init__(self,target):
        self.target = doc[target]
    def write(self,data):
        self.target.text += str(data)

sys.stdout = cons_out("console")
sys.stderr = cons_out("console")
log(sys.stdout.write)

x = [7]
print('essi')
print(x[6])
</script>

<textarea id="console" cols="80" rows="10"></textarea>
</body>
</html>


